The sales ledger can't get more than one period ahead of the general ledger. The purchase ledger can't get more than one period ahead of the general ledger. You must close sales and purchase ledgers before the general ledger.